MapSnapshotter PRO
MapSnapshotter renders a static map image offscreen via MapKit. Useful when
you need a map picture without a live <Map> view — widget previews,
share-sheet thumbnails, exported reports, or any place SwiftUI's Map isn't
available.
take — render a snapshot
Options
MapSnapshot
Overlay coordinates
point is the snapshotter's escape hatch for drawing pins or labels on top of
the image:
Working with the UIImage
snap.image exposes the same UIImage instance returned by other APIs, so
all the existing helpers work — for example, downscale before sharing:
Notes
- A 1024×768 retina PNG can be a few megabytes; reach for
preparingThumbnailbefore persisting if the snapshot is only used as a preview. - Apple caps
scalearound 3x on most devices; values above are silently clamped. - Network-backed (Apple's map tile service) — failures resolve through the Promise rejection with the underlying error message.
